<table width="100%">
<caption><h1>客户列表</h1><span><?=html::anchor('customer/lists/1/normal', '个人')?> <?=html::anchor('customer/lists/1/group', '团体')?></span></caption>
<thead>
<tr>
	<th width="5%">ID</th>
	<th width="20%">User Name</th>
	<th width="30%">E-mail</th>
	<th width="30%">User Type</th>
	<?php if($customer_type!='normal') { ?><th width="15%">信用状态</th><?php } ?>
</tr>
</thead>
<tbody id="myTable">
<?php foreach($datas as $data) { ?>
<tr>
	<td><?=$data->id?></td>
	<td><?=$data->username?></td>
	<td><?=$data->email?></td>
	<td><?=$data->type?></td>
	<?php if($customer_type!='normal') { ?><td><a href="<?=url::site('customer/setprove/'.$data->id.'/'.($data->flag_prove==0 ? 1 : 0))?>"><?=$data->flag_prove==0 ? '<span style="color:red;">未批准</span>' : '<span style="color:green;">已批准</span>' ?></a></td><?php } ?>
</tr>
<?php } ?>
</tbody>
</table>
<?=$this->pagination->create_links()?>
<?=html::script('js/table.js')?>
